home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Archive / Files / Standard File / SelectMultipleFiles / README < prev    next >
Encoding:
Text File  |  2000-09-28  |  2.1 KB  |  52 lines  |  [TEXT/CWIE]

  1. Macintosh
  2. Sample Code Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5. #18:    StdFile
  6.  
  7. Written by:    Keith Rollin
  8.  
  9. Versions:            1.00                        April 1989
  10.                     2.00                        September 1991
  11.                     2.01                        June 1992
  12.  
  13. Components:            StdFile.p                    April 1, 1989
  14.                     StdFile.h                    April 1, 1989
  15.                     StdFile.r                    April 1, 1989
  16.                     PStdFile.make                April 1, 1989
  17. _____________________________________________________________________________
  18.  
  19. StdFile attempts to demonstrate the following techniques:
  20.  
  21. •    Normal use of SFGetFile and SFPutFile.
  22. •    Normal use of SFPGetFile and SFPPutFile, which includes the use of 
  23.     custom dialogs and handling extra items through the implementation of a 
  24.     DlgHook.
  25.     •    First time initialization.
  26.     •    Extra simple buttons (Quit, Directory, ThisDir).
  27.     •    Radio buttons (file format, types of files to show).
  28.     •    Aliasing—click on some buttons to click on other buttons.
  29.     •    Regenerating the list of files displayed.
  30. •    Creating a full pathname from a reply record (using working directories
  31.     or DirID)
  32. •    Selecting a directory (à la MPWs “GetFileName -d”)
  33. •    Simple file filter (checks file type).
  34. •    Complex file filter (looking inside the file).
  35. •    Adding and deleting List Manager lists and extra List Manager lists.
  36.     This is shown for both SFGetFile and SFPutFile.
  37. •    Select multiple files using one of two methods.
  38.     •    Replace StdFile’s list with one of your own.
  39.     •    Add a second list to the dialog box.  This method is not shown
  40.         explicitly, but rather, I show how to install and dispose of the
  41.         actual list item.  Inserting filenames into the list is left as
  42.         an exercise to you, the programmer.
  43. •    Setting the starting directory or volume.
  44. •    Describe pending update event clogging.
  45.  
  46. Note:    This application assumes the existence of HFS.  It makes HFS calls
  47.         and accesses HFS data structures without first checking to see if
  48.         HFS exists on this machine.
  49.         In some cases, you will see me make use of a peculiar Pascal syntax:
  50.         IF <expr> THEN;.  This is intentional, as it gets the Pascal compiler
  51.         to discard function results in which I have no interest.
  52.